<?php

class Application_Model_service_KhachHangService implements Application_Model_serviceInf_KhachHangServiceInf {
	protected $_name = "tb_khachhang";
	protected static $_instance = null;
	
	protected function __construct() {
	
	}
	public static function getInstance() {
		if (self::$_instance == null) {
			self::$_instance = new self ();
		}
		return self::$_instance;
	}
/**
	 * @param unknown_type $idKhachHang
	 */
	public function getKhachHang($idKhachHang) {
		$khachHangDAO= Application_Model_dataDAO_KhachHangDAO::getInstance();
		$khachHangDAO instanceof Application_Model_dataDAO_KhachHangDAO;
		$khachHang=$khachHangDAO->getKhachHang($idKhachHang);
		return $khachHang;
	}
/**
	 * @param unknown_type $hoVaTen
	 * @param unknown_type $cmnd
	 * @param unknown_type $diaChi
	 * @param unknown_type $soDienThoai
	 * @param unknown_type $email
	 */
	public function themKhachHang($hoVaTen, $cmnd, $diaChi, $soDienThoai, $email) {
		$khachHangDAO= Application_Model_dataDAO_KhachHangDAO::getInstance();
		$khachHangDAO instanceof Application_Model_dataDAO_KhachHangDAO;
		$khachHang=$khachHangDAO->themKhachHang($hoVaTen, $cmnd, $diaChi, $soDienThoai, $email);
		return $khachHang;
	}


	
}

?>